/* Base styles and CSS reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f9ff;
}

.appcx {
  padding: 1rem;
  background-color: var(--background-light);
  min-height: calc(100vh - var(--header-height));
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: white;
  padding: 0 1rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header span {
  font-size: 1.6rem;
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
}

.header span:first-child {
  margin-right: 2rem;
  color: var(--primary-color);
  position: relative;
}

.header span:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.header span:last-child {
  color: var(--text-secondary);
}

.content-wrapper {
  padding-top: var(--header-height);
}

.search-bar {
  position: relative;
  margin: 1.5rem 0;
}

.search-bar input {
  width: 100%;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 2rem;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 1.4rem;
}

.search-bar::before {
  content: "🔍";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.4rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.action-button {
  padding: 0.8rem 1.5rem;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.action-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.2);
}

.section-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color);
}

.messages {
  background-color: white;
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message {
  display: flex;
  padding: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s;
}

.message:hover {
  background-color: var(--primary-light);
}

.message:last-child {
  border-bottom: none;
}

.avatar {
  margin-right: 1.2rem;
  flex-shrink: 0;
}

.avatar img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
  transition: transform 0.3s;
  border: 1px solid gray;
}

.message:hover .avatar img {
  transform: scale(1.05);
}

.content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.info {
  flex: 1;
  min-width: 0;
}

.info h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.info p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.note {
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s;
}

.message:hover .note {
  background-color: var(--primary-color);
  color: white;
}

.date {
  font-size: 1.1rem;
  color: #999;
  white-space: nowrap;
}

/* 响应式优化 */
@media screen and (max-width: 480px) {
  .action-buttons {
    justify-content: space-between;
  }
  
  .action-button {
    flex: 0 0 calc(50% - 0.5rem);
    text-align: center;
  }
  
  .header span {
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 750px) {
  .appcx {
    max-width: 750px;
    margin: 0 auto;
  }
  
  .header-content {
    padding: 0;
  }
}